package com.jytc.framework.utils;

/**
 * @title:通用工具方法 
 * @description: 
 * @Copyright: Copyright (c) 2008-8-22
 * @Company: 南京欣网视讯
 * @author: dongyuese
 * 
 */
public final class CommonUtils
{

	/**
	 * 将数据转化为以指定字符分隔的字符串
	 * @param objs　集合
	 * @param splitStr　分隔字符
	 * @return
	 */
	public static String arrayToString(Object[] objs, String splitStr)
	{
		StringBuilder temp = new StringBuilder();
		if (objs != null)
		{
			for (Object obj : objs)
			{
				temp.append(obj.toString()).append(splitStr);
			}
		} else
		{
			return null;
		}
		return temp.toString();
	}
}
